Type.registerNamespace("Telerik.Web.UI");
(function(){var a=Telerik.Web.UI;
a.SplitterSlideDirection=function(){};
a.SplitterSlideDirection.prototype={Right:1,Left:2,Top:3,Bottom:4};
a.SplitterSlideDirection.registerEnum("Telerik.Web.UI.SplitterSlideDirection",false);
a.RadSlidingZone=function(b){a.RadSlidingZone.initializeBase(this,[b]);
this._width=null;
this._height=null;
this._clickToOpen=false;
this._resizeStep=0;
this._slideDuration=300;
this._splitter=null;
this._slideDirection=a.SplitterSlideDirection.Right;
this._slidingPanes=null;
this._slidingPanesById=null;
this._initiallyDockedPaneId=null;
this._dockedPaneId=null;
this._initiallyExpandedPaneId=null;
this._expandedPaneId=null;
this.GetPaneById=this.getPaneById;
this.GetTabsContainer=this.getTabsContainer;
this.DockPane=this.dockPane;
this.UndockPane=this.undockPane;
this.GetPanes=this.getPanes;
this.ExpandPane=this.expandPane;
this.CollapsePane=this.collapsePane;
this.IsLeftDirection=this.isLeftDirection;
this.IsRightDirection=this.isRightDirection;
this.IsTopDirection=this.isTopDirection;
this.IsBottomDirection=this.isBottomDirection;
};
a.RadSlidingZone.prototype={endUpdate:function(){if(this._width.toString().indexOf("px")>-1){this._width=parseInt(this._width,10);
}if(this._height.toString().indexOf("px")>-1){this._height=parseInt(this._height,10);
}a.RadSlidingZone.callBaseMethod(this,"endUpdate");
},dispose:function(){var e=this.getPanes();
for(var d=0,b=e.length;
d<b;
d++){var c=e[d];
if(c){c._moveRootToParent(true);
}}if(this._paneTabMoutTimeout){window.clearTimeout(this._paneTabMoutTimeout);
this._paneTabMoutTimeout=null;
}a.RadSplitterController.getInstance()._removeSlidingZone(this.get_id());
a.RadSlidingZone.callBaseMethod(this,"dispose");
},initialize:function(){a.RadSlidingZone.callBaseMethod(this,"initialize");
var c=this._getPanesContainer();
var b=this.get_element();
if(this._isVerticalSlide()){c=c.parentNode;
if(this.isTopDirection()&&$telerik.isIE&&Sys.Browser.version<8){b.style.marginTop="-1px";
}}else{if(this.isLeftDirection()&&$telerik.isSafari){b.style.marginLeft="-1px";
}}c.style.display="";
},set_clickToOpen:function(b){this._clickToOpen=b;
this.updateClientState();
},get_clickToOpen:function(){return this._clickToOpen;
},set_resizeStep:function(b){this._resizeStep=b;
this.updateClientState();
},get_resizeStep:function(){return this._resizeStep;
},set_slideDuration:function(b){this._slideDuration=b;
this.updateClientState();
},get_slideDuration:function(){return this._slideDuration;
},get_width:function(){return this._width;
},get_height:function(){return this._height;
},get_expandedPaneId:function(){return this._expandedPaneId;
},get_dockedPaneId:function(){return this._dockedPaneId;
},get_parent:function(){return this._getParentPane();
},_getParentPane:function(){var b=this._parent;
if(!b){b=this._parent=a.RadSplitterController.getInstance()._getParentPane(this.get_id());
}return b;
},get_splitter:function(){var b=this._splitter;
if(!b){b=this._splitter=a.RadSplitterController.getInstance()._getSplitter(this.get_id());
}return b;
},set_splitter:function(b){this._splitter=b;
},add_loaded:function(b){this.add_load(b);
},remove_loaded:function(b){this.remove_load(b);
},add_load:function(b){this.get_events().addHandler("load",b);
},remove_load:function(b){this.get_events().removeHandler("load",b);
},getPaneById:function(b){return this._getSlidingPanesById()[b];
},getTabsContainer:function(){return $get("RAD_SLIDING_ZONE_TABS_CONTAINER_"+this.get_id());
},_getPanesContainer:function(){return $get("RAD_SLIDING_ZONE_PANES_CONTAINER_"+this.get_id());
},dockPane:function(p){var i=this.getPaneById(p);
if(!i||!i.get_enableDock()){return false;
}var k=new Sys.CancelEventArgs();
i.raiseEvent("docking",k);
if(k.get_cancel()){return false;
}var e=this._dockedPaneId;
if(e&&!this.undockPane(e)){return false;
}i._moveRootToParent(true);
var f=this._getPanesContainer();
var d=this.isLeftDirection();
var c=this.isTopDirection();
this._dockingMode=true;
var h=this._getTabsContainerSize();
var b=h+i[this._isHorizontalSlide()?"get_width":"get_height"]();
var j=this.get_parent();
var o=j.getVarSize();
var l=(d||c)?a.SplitterDirection.Backward:a.SplitterDirection.Forward;
var g=o+this.get_splitter()._getAvailIncreaseDelta(j.get_indexInPanes(),l);
b=Math.min(b,g);
var n=b-o;
if(n!=0){j.resize(n,l);
}i._dock();
i._setTabDockedState();
var m=this.get_element();
if(c&&$telerik.isIE&&Sys.Browser.version<8){m.style.marginTop="0";
}else{if(d&&$telerik.isSafari){f.style.width="1px";
setTimeout(function(){f.style.width="";
},0);
m.style.marginLeft="0";
}}this._dockedPaneId=p;
this._dockingMode=false;
this.updateClientState();
i.raiseEvent("docked",new Sys.EventArgs());
return true;
},undockPane:function(l){var c=this.getPaneById(l);
if(!c){return false;
}var i=new Sys.CancelEventArgs();
c.raiseEvent("undocking",i);
if(i.get_cancel()){return false;
}if(!l){l=this._dockedPaneId;
}var h=this.get_parent();
if(h.get_collapsed()){return false;
}c._moveRootToParent(false);
this._dockingMode=true;
c._undock();
c._setTabDefaultState();
this._dockedPaneId=null;
var g=this.isTopDirection();
var d=this.isLeftDirection();
var e=this._getPanesContainer();
var j=this.get_element();
if(g&&$telerik.isIE&&Sys.Browser.version<8){j.style.marginTop="-1px";
}else{if(d&&$telerik.isSafari){e.style.width="1px";
setTimeout(function(){e.style.width="";
},0);
j.style.marginLeft="-1px";
}}var k=h.getVarSize();
var b=k-this._getTabsContainerSize();
var f=(d||g)?a.SplitterDirection.Backward:a.SplitterDirection.Forward;
h.resize(b*(-1),f);
this.updateClientState();
this._dockingMode=false;
c.raiseEvent("undocked",new Sys.EventArgs());
this._paneTabInMover=null;
return true;
},getPanes:function(){var c=this._slidingPanes;
if(!c){var b=this.get_id();
c=this._slidingPanes=a.RadSplitterController.getInstance()._getSlidingPanes(b);
}return c;
},_getSlidingPanesById:function(){var b=this._slidingPanesById;
if(!b){b=[];
var c=this.getPanes();
for(var d=0,f=c.length;
d<f;
d++){var e=c[d];
b[e.get_id()]=e;
}this._slidingPanesById=b;
}return b;
},expandPane:function(b){if(!b){return false;
}var c=this.getPaneById(b);
if(!c){return false;
}if(c._dockOnOpen){this.dockPane(b);
this._dockedPaneId=b;
this.updateClientState();
return false;
}var e=this._expandedPaneId;
if((b==this._paneTabInMover)||(e&&b==e)){return false;
}if(e&&!this.collapsePane(e)){this._paneTabInMover=null;
return;
}if(b==this._dockedPaneId){return false;
}var d=new Sys.CancelEventArgs();
c.raiseEvent("expanding",d);
if(d.get_cancel()){return false;
}this._paneTabInMover=b;
c._setTabExpandedState();
c._expand();
this._expandedPaneId=b;
this.updateClientState();
return true;
},collapsePane:function(b,f){if(this._expandedPaneId!=b){return true;
}if(this._dockedPaneId==b){return false;
}var e=this.getPaneById(b);
if(!e){return false;
}var c=new Sys.CancelEventArgs();
e.raiseEvent("collapsing",c);
if(c.get_cancel()){return false;
}e._setTabDefaultState();
var d=e._animation;
if(d){d._stopAnimation();
}if(!f){e._tableElement.style.position="";
}e._collapse();
this._expandedPaneId=null;
this.updateClientState();
this._paneTabInMover=null;
return true;
},isLeftDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Left);
},isRightDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Right);
},isTopDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Top);
},isBottomDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Bottom);
},_paneTab_OnMouseOver:function(c){if(this._clickToOpen){return;
}window.clearTimeout(this._paneTabMoutTimeout);
var b=this._getPaneIdFromTabElement(c.target);
this.expandPane(b);
},_paneTab_OnMouseOut:function(c){if(this._clickToOpen){return;
}var b=this._getPaneIdFromTabElement(c.target);
if(!b){return;
}if($telerik.isMouseOverElementEx(this.getPaneById(b).getTabContainer(),c)){return $telerik.cancelRawEvent(c);
}this._paneTabMoutTimeout=setTimeout(Function.createDelegate(this,function(){this._paneTabInMover=null;
this.collapsePane(b);
}),100);
},_paneTab_OnMouseDown:function(d){if(!this._clickToOpen){return;
}var c=d.target;
var b=this._getPaneIdFromTabElement(c);
var f=this._expandedPaneId;
if(f==b){this.collapsePane(b);
}else{this.expandPane(b);
}},_isHorizontalSlide:function(){return(this._slideDirection==a.SplitterSlideDirection.Left||this._slideDirection==a.SplitterSlideDirection.Right);
},_isVerticalSlide:function(){return !this._isHorizontalSlide();
},_getPaneIdFromTabElement:function(b){while(b&&b.tagName!="DIV"){b=b.parentNode;
}if(!b||b.id.indexOf("RAD_SLIDING_PANE_TAB_")==-1){return"";
}return b.id.substr("RAD_SLIDING_PANE_TAB_".length);
},_handleParentPaneResizing:function(f,i){if(this._dockingMode){return;
}var b=i.get_delta();
if(this._dockedPaneId){var e=this.getPaneById(this._dockedPaneId);
if(!e.get_enableResize()){i.set_cancel(true);
return;
}var h=this._getTabsContainerSize();
var j=h+(this._isHorizontalSlide())?e.get_minWidth():e.get_minHeight();
var c=h+(this._isHorizontalSlide())?e.get_maxWidth():e.get_maxHeight();
var d=e.get_slidingPaneBounds();
var g=(this._isHorizontalSlide())?d.width:d.height;
var l=g+b;
if(l>c||l<j){i.set_cancel(true);
return;
}var k=new a.PaneResizingEventArgs(b);
e.raiseEvent("resizing",k);
i.set_cancel(k.get_cancel());
}},_getTabsContainerSize:function(){var b=this.getTabsContainer();
return(this._isHorizontalSlide())?b.offsetWidth:b.offsetHeight;
},_handleParentPaneResized:function(m,j){var d=this._dockedPaneId;
if(this._dockingMode||!d){return;
}var d=this.getPaneById(d);
if(!d.get_enableResize()){return;
}var c=d.get_slidingPaneBounds();
var h=c.width;
var e=m.get_width()-j.get_oldWidth();
var g=h+e;
var k=c.height;
var b=m.get_height()-j.get_oldHeight();
var i=k+b;
d._setSlidingContainerSize(g,i);
var l=d.get_width();
var f=j.get_oldHeight();
var i=m.get_height();
d.set_width(g);
d.set_height(i);
d.raiseEvent("resized",new a.PaneResizedEventArgs(l,f));
},_handleSplitterResized:function(b,c){if(this._expandedPaneId){if(b.get_width()!=c.get_oldWidth()||b.get_height()!=c.get_oldHeight()){var d=this._expandedPaneId;
this.collapsePane(d);
this.expandPane(d);
}}},_splitterLoadHandler:function(){var h=this.get_parent();
h.add_resizing(Function.createDelegate(this,this._handleParentPaneResizing));
h.add_resized(Function.createDelegate(this,this._handleParentPaneResized));
var g=this.get_splitter();
g.add_resized(Function.createDelegate(this,this._handleSplitterResized));
if($telerik.quirksMode){var k=this.getPanes();
for(var b=0,j=k.length;
b<j;
b++){var f=k[b];
var e=f.get_element();
e.className=g.getContainerElement().className+" RadSlidingPaneQuirksMode "+e.className;
f._originalParent=f.get_element().parentNode;
f._moveRootToParent(false);
}}var d=this._initiallyDockedPaneId;
if(d!=null){this.dockPane(d);
}var c=this._initiallyExpandedPaneId;
if(c!=null){this.expandPane(c);
}this.updateClientState();
this.raiseEvent("load");
},saveClientState:function(){if(this.get_isUpdating()){return null;
}var b={dockedPaneId:this._dockedPaneId||"",expandedPaneId:this._expandedPaneId||""};
var f=["clickToOpen","resizeStep","slideDuration"];
for(var d=0,c=f.length;
d<c;
d++){var e=f[d];
b[e]=this["get_"+e]();
}return Sys.Serialization.JavaScriptSerializer.serialize(b);
}};
a.RadSlidingZone._preInitialize=function(c,b,d){a.RadSplitterController.getInstance()._addSlidingZone(c,b,d);
};
a.RadSlidingZone.registerClass("Telerik.Web.UI.RadSlidingZone",a.RadWebControl);
})();
Type.registerNamespace("Telerik.Web.UI");
(function(){var a=Telerik.Web.UI;
a.RadSlidingPane=function(b){a.RadSlidingPane.initializeBase(this,[b]);
this._title="";
this._enableResize=true;
this._enableDock=true;
this._dockOnOpen=false;
this._parentPane=null;
this._clickToOpen=false;
this._slideDirection=a.SplitterSlideDirection.Right;
this._slideDuration=300;
this._resizeBarSize=null;
this._isExpanded=false;
this._isDocked=false;
this._width=150;
this._height=150;
this._minWidth=60;
this._minHeight=60;
this._isInitialSizeApplied=false;
this._popupBehavior=null;
this._popupElement=null;
this._contentElement=null;
this._tableElement=null;
this._tabContainer=null;
this._resizeElement=null;
this._originalParent=null;
this.GetContentContainer=this.getContentContainer;
this.GetContent=this.getContent;
this.SetContent=this.setContent;
this.GetDockIconElement=this.getDockIconElement;
this.GetUndockIconElement=this.getUndockIconElement;
this.GetCollapseIconElement=this.getCollapseIconElement;
this.GetSlidingContainerTitle=this.getSlidingContainerTitle;
this.GetSlidingPaneResizeContainer=this.getSlidingPaneResizeContainer;
this.GetTabContainer=this.getTabContainer;
this.HideTab=this.hideTab;
this.ShowTab=this.showTab;
this.IsTabDisplayed=this.isTabDisplayed;
};
a.RadSlidingPane.prototype={initialize:function(){a.RadSlidingPane.callBaseMethod(this,"initialize");
this._popupElement=this.get_element();
this._contentElement=this.getContentContainer();
this._tableElement=this._popupElement.getElementsByTagName("TABLE")[0];
this._tabContainer=this.getTabContainer();
this._resizeElement=this.getSlidingPaneResizeContainer();
var d=this._tabContainer;
$addHandlers(d,{mousedown:this._paneTab_OnMouseDown,mouseover:this._paneTab_OnMouseOver,mouseout:this._paneTab_OnMouseOut},this);
var c=this._popupElement;
$addHandlers(c,{mouseover:this._slidingContainer_OnMouseOver,mouseout:this._slidingContainer_OnMouseOut},this);
var f=this._resizeElement;
$addHandlers(f,{mouseover:this._resizeSlidePane_OnMouseOver,mouseout:this._resizeSlidePane_OnMouseOut,mousedown:this._resizeSlidePane_OnMouseDown},this);
f.setAttribute("unselectable","on");
var b=this.getDockIconElement();
$addHandlers(b,{mouseover:this._dockElement_OnMouseOver,mouseout:this._dockElement_OnMouseOut,mousedown:this._dockElement_OnMouseDown},this);
var e=this.getUndockIconElement();
$addHandlers(e,{mouseover:this._undockElement_OnMouseOver,mouseout:this._undockElement_OnMouseOut,mousedown:this._undockElement_OnMouseDown},this);
var g=this.getCollapseIconElement();
$addHandlers(g,{mouseover:this._collapseElement_OnMouseOver,mouseout:this._collapseElement_OnMouseOut,mousedown:this._collapseElement_OnMouseDown},this);
if(this._scrollingEnabled==null){this._scrollingEnabled=(this._scrolling!=a.SplitterPaneScrolling.None);
}if(this._scrollingEnabled&&this._persistScrollPosition){this._attachScrollHandler();
}this.updateClientState();
},dispose:function(){this._moveRootToParent(true);
this._originalParent=null;
var f=this._popupBehavior;
if(f){f.dispose();
this._popupBehavior=null;
}var j=this._animation;
if(this._expandAnimationEndedDelegate){if(j){j.remove_expandAnimationEnded(this._expandAnimationEndedDelegate);
}this._expandAnimationEndedDelegate=null;
}if(j){j.dispose();
this._animation=null;
}var g=this._tabContainer;
if(g){$clearHandlers(g);
}var e=this._popupElement;
if(e){$clearHandlers(e);
}this._popupElement=null;
var b=this._resizeElement;
if(b){$clearHandlers(b);
}this._resizeElement=null;
var c=this.getDockIconElement();
if(c){$clearHandlers(c);
}var d=this.getUndockIconElement();
if(d){$clearHandlers(d);
}var h=this.getCollapseIconElement();
if(h){$clearHandlers(h);
}var i=this._contentElement;
if(this._onScrollAttached&&i){$clearHandlers(i);
}this._contentElement=null;
a.RadSplitterController.getInstance()._removeSlidingPane(this.get_id());
a.RadSlidingPane.callBaseMethod(this,"dispose");
},get_parent:function(){return this._getSlidingZone();
},_getSlidingZone:function(){var b=this._parent;
if(!b){b=this._parent=a.RadSplitterController.getInstance()._getSlidingZone(this.get_id());
}return b;
},get_enableResize:function(){return this._enableResize;
},set_enableResize:function(b){this._enableResize=b;
this.updateClientState();
},get_enableDock:function(){return this._enableDock;
},set_enableDock:function(b){this._enableDock=b;
this.updateClientState();
},get_dockOnOpen:function(){return this._dockOnOpen;
},set_dockOnOpen:function(b){this._dockOnOpen=b;
this.updateClientState();
},set_title:function(b){this._title=b;
var c=this._getTitleContainerElement();
if(c!=null){c.innerHTML=(!$telerik.isIE&&this._isHorizontalSlide())?b.split("").join("<br/>"):b;
}var d=this.getSlidingContainerTitle();
if(d){d.innerHTML=b;
}this.updateClientState();
},get_title:function(){return this._title;
},get_expanded:function(){return this._isExpanded;
},get_docked:function(){return this._isDocked;
},get_parentPane:function(){var b=this._parentPane;
if(!b){b=this._parentPane=a.RadSplitterController.getInstance()._getParentPane(this.get_id());
}return b;
},set_parentPane:function(b){this._parentPane=b;
},add_docked:function(b){this.get_events().addHandler("docked",b);
},remove_docked:function(b){this.get_events().removeHandler("docked",b);
},add_undocked:function(b){this.get_events().addHandler("undocked",b);
},remove_undocked:function(b){this.get_events().removeHandler("undocked",b);
},add_beforeDock:function(b){this.add_docking(b);
},remove_beforeDock:function(b){this.remove_docking(b);
},add_docking:function(b){this.get_events().addHandler("docking",b);
},remove_docking:function(b){this.get_events().removeHandler("docking",b);
},add_beforeUndock:function(b){this.add_undocking(b);
},remove_beforeUndock:function(b){this.remove_undocking(b);
},add_undocking:function(b){this.get_events().addHandler("undocking",b);
},remove_undocking:function(b){this.get_events().removeHandler("undocking",b);
},getContentContainer:function(){if(!this._contentElement){this._contentElement=$get("RAD_SLIDING_PANE_CONTENT_"+this.get_id());
}return this._contentElement;
},get_pane:function(){return this.get_parentPane().get_element();
},get_paneBounds:function(){var b=this.get_pane();
return $telerik.getBounds(b);
},_show:function(b,c){var d=this._popupBehavior;
d._setCoordinates(b,c);
d.show();
},get_slidingPaneBounds:function(){var d=this._popupElement;
var c=(d.style.top==""&&!this._isDocked);
if(c){this._setSlidingContainerSize();
}var b=$telerik.getBounds(d);
return b;
},_fixIeHeight:function(b,c){if($telerik.standardsMode){var e=(b.offsetHeight-parseInt(c));
if(e>0){var d=(parseInt(b.style.height)-e);
if(d>0){b.style.height=d+"px";
}}}},getContent:function(){return this._contentElement.innerHTML;
},setContent:function(b){this._contentElement.innerHTML=b;
},getDockIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_DOCK_"+this.get_id());
},getDockIconWrapperElement:function(){return this.getDockIconElement().parentNode;
},getUndockIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_UNDOCK_"+this.get_id());
},getUnDockIconWrapperElement:function(){return this.getUndockIconElement().parentNode;
},getCollapseIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_COLLAPSE_"+this.get_id());
},getCollapseIconWrapperElement:function(){return this.getCollapseIconElement().parentNode;
},getSlidingContainerTitle:function(){return $get("RAD_SPLITTER_SLIDING_TITLE_"+this.get_id());
},getSlidingPaneResizeContainer:function(){if(!this._resizeElement){this._resizeElement=$get("RAD_SPLITTER_SLIDING_ZONE_RESIZE_"+this.get_id());
}return this._resizeElement;
},getTabContainer:function(){if(!this._tabContainer){this._tabContainer=$get("RAD_SLIDING_PANE_TAB_"+this.get_id());
}return this._tabContainer;
},hideTab:function(){var b=this._tabContainer;
if(b==null){return;
}b.style.display="none";
},showTab:function(){var b=this._tabContainer;
if(b==null){return;
}b.style.display="";
},isTabDisplayed:function(){var b=this._tabContainer;
if(b==null){return false;
}return(b.style.display!="none");
},_getIsLeftDirection:function(){var b=$telerik.isRightToLeft(this.get_element());
return(this._isLeftDirection()&&!b)||(b&&this._isRightDirection());
},_getIsRightDirection:function(){var b=$telerik.isRightToLeft(this.get_element());
return(this._isRightDirection()&&!b)||(b&&this._isLeftDirection());
},_setTabDefaultState:function(){var b=this._tabContainer;
if(b==null){return false;
}Sys.UI.DomElement.removeCssClass(b,"rspPaneTabContainerDocked");
Sys.UI.DomElement.removeCssClass(b,"rspPaneTabContainerExpanded");
},_setTabDockedState:function(){var b=this._tabContainer;
if(b==null){return false;
}Sys.UI.DomElement.addCssClass(b,"rspPaneTabContainerDocked");
},_setTabExpandedState:function(){var b=this._tabContainer;
if(b==null){return false;
}Sys.UI.DomElement.addCssClass(b,"rspPaneTabContainerExpanded");
},_resizeSlidePane_OnMouseOver:function(c){var b=(this._isHorizontalSlide())?"rspSlideContainerResizeOver":"rspSlideContainerResizeOverHorizontal";
Sys.UI.DomElement.addCssClass(this._resizeElement,b);
},_resizeSlidePane_OnMouseOut:function(c){var b=(this._isHorizontalSlide())?"rspSlideContainerResizeOver":"rspSlideContainerResizeOverHorizontal";
Sys.UI.DomElement.removeCssClass(this._resizeElement,b);
},_resizeSlidePane_OnMouseDown:function(k){k.preventDefault();
k.stopPropagation();
var p=this._isHorizontalSlide();
this._maxDecreaseDelta=(p)?this.get_width()-this.get_minWidth():this.get_height()-this.get_minHeight();
var n=(p)?this.get_maxWidth()-this.get_width():this.get_maxHeight()-this.get_height();
var d=this.get_parentPane();
var b=d._getAvailIncreaseDelta();
var j=this.get_splitter()._getAvailDecreaseDelta(d.get_indexInPanes(),a.SplitterDirection.Forward);
var c=Math.min(j,b);
var m=this._getSlidingZone();
var f=m.get_dockedPaneId();
if(f!=null){var g=m.getPaneById(f);
c+=(p)?g.get_width():g.get_height();
}c-=(p)?this.get_width():this.get_height();
this._maxIncreaseDelta=Math.min(n,c);
if(this._getIsLeftDirection()||this._isTopDirection()){var o=this._maxIncreaseDelta;
this._maxIncreaseDelta=this._maxDecreaseDelta;
this._maxDecreaseDelta=o;
}var h=this._resizeElement;
var l=$telerik.getLocation(h);
if($telerik.isSafari&&p){var i=$telerik.getLocation(h.parentNode);
l.y=i.y;
}this._mouseStartX=k.clientX;
this._mouseStartY=k.clientY;
this._handlerStartLeftPos=l.x;
this._handlerStartTopPos=l.y;
this._currentDelta=0;
if(!this._helperBar){this._createResizeHelper();
}this._mouseUpResizeHandler=Function.createDelegate(this,this._resizeSlidePane_OnMouseUp);
this._mouseMoveResizeHandler=Function.createDelegate(this,this._resizeSlidePane_OnMouseMove);
$addHandler(document,"mouseup",this._mouseUpResizeHandler);
$addHandler(document,"mousemove",this._mouseMoveResizeHandler);
this._resizeMode=true;
return false;
},_resizeSlidePane_OnMouseUp:function(k){$telerik.cancelRawEvent(k);
$removeHandler(document,"mouseup",this._mouseUpResizeHandler);
$removeHandler(document,"mousemove",this._mouseMoveResizeHandler);
this._resizeMode=false;
var f=this._helperBar;
if(f){f.parentNode.removeChild(f);
this._helperBar=null;
this._helperBarDecoration=null;
}var c=this._isTopDirection();
var d=this._getIsLeftDirection();
if(d||c){this._currentDelta*=-1;
}if(!this.get_expanded()){return false;
}var l=this._currentDelta;
if(l&&l!=0){var m=new a.PaneResizingEventArgs(l);
this.raiseEvent("resizing",m);
if(!m.get_cancel()){var j=null;
var n=null;
var p=this._isHorizontalSlide();
var g=this.get_slidingPaneBounds();
if(p){j=g.width+l;
}else{n=g.height+l;
}this._setSlidingContainerSize(j,n);
var b=this._popupBehavior.get_x();
var h=this._popupBehavior.get_y();
if(d){b-=l;
}else{if(c){h-=l;
}}this._show(b,h);
var o=this.get_width();
var i=this.get_height();
if(p){this.set_width(j);
}else{this.set_height(n);
}$telerik.repaintChildren(this);
this.raiseEvent("resized",new a.PaneResizedEventArgs(o,i));
}}return false;
},_createResizeHelper:function(){var k=this._isHorizontalSlide();
var g=k?"w-resize":"n-resize";
var d=document.createElement("table");
var f=150;
d.style.position="absolute";
d.style.left=this._handlerStartLeftPos-(k?f:0)+"px";
d.style.top=this._handlerStartTopPos-(!k?f:0)+"px";
d.style.zIndex=this._popupElement.style.zIndex+1;
d.style.cursor=g;
d.style.border="0px none";
d.cellSpacing=0;
d.cellPadding=0;
d.unselectable="on";
document.body.insertBefore(d,document.body.firstChild);
Sys.UI.DomElement.addCssClass(d,"RadSplitter");
var c=document.createElement("tbody");
d.appendChild(c);
var i=document.createElement("tr");
c.appendChild(i);
var j=document.createElement("td");
i.appendChild(j);
var e=document.createElement("div");
e.style.margin=this._isSplitterVertical()?"0 150px":"150px 0";
e.style.cursor=g;
e.unselectable="on";
e.innerHTML="<!-- / -->";
j.appendChild(e);
Sys.UI.DomElement.addCssClass(e,"rspHelperBarSlideDrag");
var b={width:4,height:4};
var h=this.get_parentPane();
if(k){b.height=h.get_height();
}else{b.width=h.get_width();
}$telerik.setSize(e,b);
this._helperBar=d;
this._helperBarDecoration=e;
},_resizeSlidePane_OnMouseMove:function(g){this._resizeMode=true;
var f=this._helperBarDecoration;
Sys.UI.DomElement.removeCssClass(f,"rspHelperBarSlideError");
var j=this._isHorizontalSlide();
var h=(j)?g.clientX-this._mouseStartX:g.clientY-this._mouseStartY;
var i=false;
if(h<((-1)*this._maxDecreaseDelta)){i=true;
h=this._maxDecreaseDelta*(-1);
}else{if(h>this._maxIncreaseDelta){i=true;
h=this._maxIncreaseDelta;
}}var b=this._resizeStep;
if(b>0){h-=h%b;
}this._currentDelta=h;
var d=this._helperBar;
var c=150;
if(j){d.style.left=this._handlerStartLeftPos+h-c+"px";
}else{d.style.top=this._handlerStartTopPos+h-c+"px";
}if(i){Sys.UI.DomElement.addCssClass(f,"rspHelperBarSlideError");
}return $telerik.cancelRawEvent(g);
},_paneTab_OnMouseDown:function(b){var c=this._getSlidingZone();
c._paneTab_OnMouseDown(b);
},_paneTab_OnMouseOver:function(b){var c=this._getSlidingZone();
c._paneTab_OnMouseOver(b);
},_paneTab_OnMouseOut:function(b){var c=this._getSlidingZone();
c._paneTab_OnMouseOut(b);
},_slidingContainer_OnMouseOut:function(d){if(this.get_docked()||this._resizeMode||this._clickToOpen||!this.get_expanded()){return;
}if($telerik.isMouseOverElementEx(this._popupElement,d)){return;
}var c=this;
var g=function(){var e=c._getSlidingZone();
e._paneTabInMover=null;
e.collapsePane(c.get_id());
};
var b=this._getSlidingZone();
window.clearTimeout(b._paneTabMoutTimeout);
b._paneTabMoutTimeout=window.setTimeout(g,1000);
},_slidingContainer_OnMouseOver:function(b){if(this.get_docked()||this._resizeMode){return;
}window.clearTimeout(this._getSlidingZone()._paneTabMoutTimeout);
},_dockElement_OnMouseDown:function(b){if(b.button&&b.button!=1){return true;
}if(!this.get_expanded()){return;
}var c=this._getSlidingZone();
if(!c.collapsePane(this.get_id(),true)){return;
}c.dockPane(this.get_id());
this.getDockIconElement().className="rspSlideHeaderDockIcon";
},_dockElement_OnMouseOver:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.addCssClass(this.getDockIconElement(),"rspSlideHeaderDockIconOver");
},_dockElement_OnMouseOut:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.removeCssClass(this.getDockIconElement(),"rspSlideHeaderDockIconOver");
},_undockElement_OnMouseDown:function(b){if(b.button&&b.button!=1){return true;
}if(!this.get_docked()){return;
}this._getSlidingZone().undockPane(this.get_id());
},_undockElement_OnMouseOver:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.addCssClass(this.getUndockIconElement(),"rspSlideHeaderUndockIconOver");
},_undockElement_OnMouseOut:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.removeCssClass(this.getUndockIconElement(),"rspSlideHeaderUndockIconOver");
},_collapseElement_OnMouseDown:function(b){if(b.button&&b.button!=1){return true;
}if(!this.get_expanded()){return;
}var c=this._getSlidingZone();
c._paneTabInMover=null;
c.collapsePane(this.get_id());
},_collapseElement_OnMouseOver:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.addCssClass(this.getCollapseIconElement(),"rspSlideHeaderCollapseIconOver");
},_collapseElement_OnMouseOut:function(b){if(b.button&&b.button!=1){return true;
}Sys.UI.DomElement.removeCssClass(this.getCollapseIconElement(),"rspSlideHeaderCollapseIconOver");
},_onExpandAnimationEnded:function(){this._tableElement.style.position="static";
if($telerik.isFirefox){this._configureScrolling();
Sys.UI.DomElement.removeCssClass(this._contentElement,"rspHideContentOverflow");
}if($telerik.getVisible(this.get_element())){this._showOverlayElement(true);
}this.setScrollPos(this._scrollLeft,this._scrollTop);
$telerik.repaintChildren(this);
this.raiseEvent("expanded",new Sys.EventArgs());
},_expandSlidingContainer:function(){this._showOverlayElement(false);
if($telerik.isFirefox){var c=this._contentElement;
c.style.overflow="hidden";
Sys.UI.DomElement.addCssClass(c,"rspHideContentOverflow");
}var f=this._tableElement;
var g=$telerik.getOuterSize(f);
var e=a.jSlideDirection.Right;
if(this._getIsLeftDirection()){e=a.jSlideDirection.Left;
f.style.left=g.width+"px";
}else{if(this._isBottomDirection()){e=a.jSlideDirection.Down;
f.style.top=-g.height+"px";
}else{if(this._isTopDirection()){e=a.jSlideDirection.Up;
f.style.top=g.height+"px";
}else{f.style.left=-g.width+"px";
}}}if(!this._animation){var d=new a.AnimationSettings({duration:this._slideDuration});
var b=new a.jSlide(f,d,null,false);
b.initialize();
b.set_direction(e);
this._expandAnimationEndedDelegate=Function.createDelegate(this,this._onExpandAnimationEnded);
b.add_expandAnimationEnded(this._expandAnimationEndedDelegate);
this._animation=b;
}this._animation.expand();
},_collapseSlidingContainer:function(){try{this._animation.stop();
}catch(b){}this._hideSlidingContainer();
this.raiseEvent("collapsed",new Sys.EventArgs());
},_setSlidingContainerSize:function(c,f){var e=$telerik.getSize(this.get_parentPane()._contentElement);
var g=this._isVerticalSlide();
if(c==null){c=(!g)?this.get_width():e.width;
}if(f==null){f=g?this.get_height():e.height;
}var i=this._contentElement;
if($telerik.isSafari){i.style.width=c+"px";
i.style.height=f+"px";
}var d=this._popupElement;
if(parseInt(d.style.width)!=c){d.style.width=c+"px";
}if(parseInt(d.style.height)!=f){d.style.height=f+"px";
}var b=this._getResizeElementSize();
var h={height:(f-this._getHeaderHeight()-(g?b.height:0)),width:(c-(!g?b.width:0))};
this._setContentOuterSize(h);
this._isInitialSizeApplied=true;
},_getHeaderHeight:function(){var b=0;
var c=$telerik.getElementByClassName(this._tableElement,"rspSlideTitleContainer","td");
if(c){b=$telerik.getOuterSize(c).height;
}return b;
},_getResizeElementSize:function(){var b={width:0,height:0};
if(this._enableResize){var c=this._resizeElement;
if("none"!=$telerik.getCurrentStyle(c,"display","")){b=$telerik.getOuterSize(c);
}}return b;
},_setContentOuterSize:function(b){var c=this._contentElement;
var e=$telerik.getBorderBox(c);
var f=$telerik.getPaddingBox(c);
var d=$telerik.getMarginBox(c);
b.height-=(e.vertical+f.vertical+d.vertical);
if(parseInt(c.style.height)!=b.height&&b.height>=0){c.style.height=b.height+"px";
}b.width-=(e.horizontal+f.horizontal+d.horizontal);
if(parseInt(c.style.width)!=b.width&&b.width>=0){c.style.width=b.width+"px";
}},_hideSlidingContainer:function(){var b=this._popupElement;
b.style.top="";
b.style.left="";
this._showOverlayElement(false);
},_dockSlidingContainer:function(){this._popupElement.style.position="static";
this._tableElement.style.position="static";
this._showOverlayElement(false);
},_unDockSlidingContainer:function(){this._popupElement.style.position="";
this._tableElement.style.position="";
this._showOverlayElement(true);
},_setSlidingContainerResizable:function(f){var e=this._resizeElement;
var b=this._isVerticalSlide();
if(b){e=e.parentNode;
}if(f&&e.style.display==""){return;
}if(this._enableResize){var d=this._resizeBarSize;
if(null==d){d=this._getResizeElementSize()[b?"height":"width"];
if(d>0){this._resizeBarSize=d;
}}if(f){d*=-1;
}var c=this._contentElement;
if(b){c.style.height=parseInt(c.style.height)+d+"px";
}else{c.style.width=parseInt(c.style.width)+d+"px";
}}e.style.display=(f)?"":"none";
},_setIconsExpandedState:function(){this._hideAllIcons();
this.getDockIconWrapperElement().style.display=(this.get_enableDock())?"":"none";
this.getCollapseIconWrapperElement().style.display="";
},_setIconsDockedState:function(){this._hideAllIcons();
this.getUnDockIconWrapperElement().style.display="";
},_hideAllIcons:function(){this.getDockIconWrapperElement().style.display="none";
this.getUnDockIconWrapperElement().style.display="none";
this.getCollapseIconWrapperElement().style.display="none";
},_getTitleContainerElement:function(){return $get("RAD_SLIDING_PANE_TEXT_"+this.get_id());
},_dock:function(){if(!this._isInitialSizeApplied){this._setSlidingContainerSize();
}this._setIconsDockedState();
this._setSlidingContainerResizable(false);
this._dockSlidingContainer();
this.setScrollPos(this._scrollLeft,this._scrollTop);
$telerik.repaintChildren(this);
this._isExpanded=false;
this._isDocked=true;
},_undock:function(){this._isExpanded=false;
this._isDocked=false;
this._setSlidingContainerResizable(this._enableResize);
this._unDockSlidingContainer();
this._hideSlidingContainer();
},_expand:function(){var b=this._getSlidingZone().getTabsContainer();
var f=this._popupElement;
if(!this._popupBehavior){var g=(new Date()-100)+"PopupBehavior";
this._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:g,parentElement:b,keepInScreenBounds:false,manageVisibility:false},null,null,f);
}this._setSlidingContainerResizable(this._enableResize);
this._setIconsExpandedState();
var c=0;
var d=0;
var h=this.get_slidingPaneBounds();
var e=$telerik.getSize(b);
if(this._getIsRightDirection()){c=e.width;
}else{if(this._getIsLeftDirection()){c=-h.width;
}else{if(this._isBottomDirection()){d=e.height;
}else{if(this._isTopDirection()){d=-h.height;
}}}}this._show(c,d);
this._expandSlidingContainer();
this._isExpanded=true;
this._isDocked=false;
},_collapse:function(){this._isExpanded=false;
this._isDocked=false;
this._collapseSlidingContainer();
},_isLeftDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Left);
},_isRightDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Right);
},_isTopDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Top);
},_isBottomDirection:function(){return(this._slideDirection==a.SplitterSlideDirection.Bottom);
},_isHorizontalSlide:function(){return(this._slideDirection==a.SplitterSlideDirection.Left||this._slideDirection==a.SplitterSlideDirection.Right);
},_isVerticalSlide:function(){return !this._isHorizontalSlide();
},saveClientState:function(){var g=this.getScrollPos();
var b={_scrollLeft:g.left,_scrollTop:g.top};
var f=["width","height","title","enableResize","minWidth","maxWidth","minHeight","maxHeight","enableDock"];
for(var d=0,c=f.length;
d<c;
d++){var e=f[d];
b[e]=this["get_"+e]();
}return Sys.Serialization.JavaScriptSerializer.serialize(b);
},_getOverlayElement:function(){return this._popupElement._hideWindowedElementsIFrame;
},_showOverlayElement:function(b){var c=this._getOverlayElement();
if(!c){return;
}c.style.display=b?"":"none";
},_getRadioButtons:function(){var b=this._contentElement.getElementsByTagName("input");
var d=[];
for(var e=0,f=b.length;
e<f;
e++){var c=b[e];
if(c.type=="radio"){d.push(c);
}}return d;
},_getRadioButtonsStatus:function(c){var b=[];
for(var d=0,e=c.length;
d<e;
d++){b.push(c[d].getAttribute("checked"));
}return b;
},_restoreRadioButtonsStatus:function(b,c){for(var d=c.length-1;
d>=0;
d--){if(b.length==0){break;
}c[d].setAttribute("checked",b.pop());
}},_moveRootToParent:function(g){if(!$telerik.quirksMode){return;
}var b=(g)?this._originalParent:this.get_splitter().get_element();
var c=this._popupElement;
if(!c){return;
}var d=c.parentNode;
if(!b||!d||b.id==d.id){return;
}if($telerik.isIE){var f=this._getRadioButtons();
var e=this._getRadioButtonsStatus(f);
}d.removeChild(c);
b.appendChild(c);
if($telerik.isIE){this._restoreRadioButtonsStatus(e,f);
}}};
a.RadSlidingPane._preInitialize=function(b,d,f,e,c){a.RadSplitterController.getInstance()._addSlidingPane(b,d,f,e,c);
};
a.RadSlidingPane.registerClass("Telerik.Web.UI.RadSlidingPane",a.SplitterPaneBase);
})();
